package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.TInsBuyModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by HangLiu on 2017/2/20.
 */
public interface TInsBuyRepository extends JpaRepository<TInsBuyModel, Integer>, JpaSpecificationExecutor<TInsBuyModel> {
    @Query("select u from TInsBuyModel u where u.carid=?1")
    TInsBuyModel findByCarId(Integer carid);
}
